package com.jinzhi.demo.controller;

/**
 * <pre>
 *
 * </pre>
 * <small> 2019-05-30 16:48 | Aron</small>
 */
public class MainTest {
    public static void main(String[] args) {

//        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
//        SimpleDateFormat formatter1 = new SimpleDateFormat("HH:mm");
//        String yearTime = formatter.format(new Date());
//        String startTime = formatter1.format(new Date());
//        System.out.println("yearTime::" + yearTime + " " + startTime + "-" + startTime);
//        System.out.println("startTime::" +startTime);

//        String bb = "A;;B;;C;;";
//        String[] ssb = bb.split(";;");
//        for(int i=0;i<ssb.length;i++){
//            System.out.println("ssbLength:" + ssb.length);
//            System.out.println("ssb::::"  + ssb[i]);
//        }


//        String ss = "432524199801057999";
//        System.out.println("startTime::" +ss.substring(ss.length() - 6));
//        String ss = WithZoreUtil.frontCompWithZore(11,2);
//        System.out.println("ss:" + ss);
//
//        Date date = new Date();
//        SimpleDateFormat format = new SimpleDateFormat("yyyy");
//        String year = format.format(date);
//        String yearRe = year.substring(year.length() - 2);
//        System.out.println("当前日期字符串：" + format.format(date) + "; 截取后的年份为："+yearRe);

//        String s1 = "test_aaaa";
//        String s2 = "test_aaaa_bbbb";
//        String s3 = "testAaaa";
//        String s4 = "testAaaaBbbb";
//        String s5 = "test-aaaa";
//        String s6 = "test-aaaa_bbbb";
//
//        System.out.println(WordUtils.capitalize(s1));
//
//        System.out.println(WordUtils.capitalize(s1, new char[]{'_','-'}));
//        System.out.println(WordUtils.capitalize(s6, new char[]{'_','-'}));

        int a = 1 / 3;
        int c = 3 / 3;
        int d = 4 / 3;
        int b = 1 % 3;
        int n = 3 % 3;
        int m = 4 % 3;

        System.out.println(a);
        System.out.println(c);
        System.out.println(d);
        System.out.println(b);
        System.out.println(n);
        System.out.println(m);

    }

    // 往字符串数组追加新数据
    private static String[] insert(String[] arr, String... str) {
        int size = arr.length; // 获取原数组长度
        int newSize = size + str.length; // 原数组长度加上追加的数据的总长度

        // 新建临时字符串数组
        String[] tmp = new String[newSize];
        // 先遍历将原来的字符串数组数据添加到临时字符串数组
        for (int i = 0; i < size; i++) {
            tmp[i] = arr[i];
        }
        // 在末尾添加上需要追加的数据
        for (int i = size; i < newSize; i++) {
            tmp[i] = str[i - size];
        }
        return tmp; // 返回拼接完成的字符串数组
    }

}
